package com.ruoyi.offer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.offer.mapper.HrTalentPoolMapper;
import com.ruoyi.offer.domain.HrTalentPool;
import com.ruoyi.offer.service.IHrTalentPoolService;

/**
 * 人才库Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrTalentPoolServiceImpl implements IHrTalentPoolService 
{
    @Autowired
    private HrTalentPoolMapper hrTalentPoolMapper;

    /**
     * 查询人才库
     * 
     * @param id 人才库主键
     * @return 人才库
     */
    @Override
    public HrTalentPool selectHrTalentPoolById(Long id)
    {
        return hrTalentPoolMapper.selectHrTalentPoolById(id);
    }

    /**
     * 查询人才库列表
     * 
     * @param hrTalentPool 人才库
     * @return 人才库
     */
    @Override
    public List<HrTalentPool> selectHrTalentPoolList(HrTalentPool hrTalentPool)
    {
        return hrTalentPoolMapper.selectHrTalentPoolList(hrTalentPool);
    }

    /**
     * 新增人才库
     * 
     * @param hrTalentPool 人才库
     * @return 结果
     */
    @Override
    public int insertHrTalentPool(HrTalentPool hrTalentPool)
    {
        return hrTalentPoolMapper.insertHrTalentPool(hrTalentPool);
    }

    /**
     * 修改人才库
     * 
     * @param hrTalentPool 人才库
     * @return 结果
     */
    @Override
    public int updateHrTalentPool(HrTalentPool hrTalentPool)
    {
        return hrTalentPoolMapper.updateHrTalentPool(hrTalentPool);
    }

    /**
     * 批量删除人才库
     * 
     * @param ids 需要删除的人才库主键
     * @return 结果
     */
    @Override
    public int deleteHrTalentPoolByIds(Long[] ids)
    {
        return hrTalentPoolMapper.deleteHrTalentPoolByIds(ids);
    }

    /**
     * 删除人才库信息
     * 
     * @param id 人才库主键
     * @return 结果
     */
    @Override
    public int deleteHrTalentPoolById(Long id)
    {
        return hrTalentPoolMapper.deleteHrTalentPoolById(id);
    }
}
